package com.leads.controller;


import com.leads.entity.CrmLeads;
import com.leads.service.ICrmLeadsService;
import com.ruoyi.common.core.domain.R;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 线索表 前端控制器
 * </p>
 *
 * @author rick
 * @since 2022-12-13 11:23:15
 */
@RestController
@RequestMapping("/crmLeads")
public class CrmLeadsController {
    @Autowired
    ICrmLeadsService crmLeadsService;
    @RequestMapping("add")
    public R leadsAdd(@RequestBody CrmLeads crmLeads){
        crmLeadsService.addLeads(crmLeads,false);
        return R.ok();
    }



}
